package repository

import (
	"context"
	"gorm.io/gorm"
	"xs.jsjb/internal/app/user/entity"
)

type (
	userRepo struct {
		db *gorm.DB
	}
	UserRepo interface {
		GetUserByName(ctx context.Context, userName string) (*entity.User, error)
	}
)

func NewUserRepo(db *gorm.DB) UserRepo {
	return &userRepo{db: db}
}
